<?php
/* @var $this ClassificationController */
/* @var $model Classification */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'classification-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'classroom'); ?>
			<?php echo $form->dropDownlist($model, 'classroom',$model->getClassroom() ,
		array('prompt' => 'Select a Classroom',)); ?>
		<?php echo $form->error($model,'classroom'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'other'); ?>
		<?php echo $form->textArea($model,'other',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'other'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'no_of_door'); ?>
		<?php echo $form->textField($model,'no_of_door'); ?>
		<?php echo $form->error($model,'no_of_door'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'direction'); ?>
		<?php echo $form->textArea($model,'direction',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'direction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'angle_of_swing'); ?>
		<?php echo $form->textArea($model,'angle_of_swing',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'angle_of_swing'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'width'); ?>
		<?php echo $form->textField($model,'width',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'width'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'units_of_measurement_of_the_width'); ?>
		<?php echo $form->dropDownlist($model, 'units_of_measurement_of_the_width',$model->getMeasurementa() ,
		array('prompt' => 'Select a Measurement Type',)); ?>
		<?php echo $form->error($model,'units_of_measurement_of_the_width'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'window_opening_provided'); ?>
		<?php echo $form->textField($model,'window_opening_provided'); ?>
		<?php echo $form->error($model,'window_opening_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'wop_width'); ?>
		<?php echo $form->textField($model,'wop_width',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'wop_width'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'units_of_measurement_of_the_wop_width'); ?>
		<?php echo $form->dropDownlist($model, 'units_of_measurement_of_the_wop_width',$model->getMeasurementb() ,
		array('prompt' => 'Select a Measurement Type',)); ?>
		<?php echo $form->error($model,'units_of_measurement_of_the_wop_width'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'wop_height'); ?>
		<?php echo $form->textField($model,'wop_height',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'wop_height'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'units_of_measurement_of_the_wop_height'); ?>
		<?php echo $form->dropDownlist($model, 'units_of_measurement_of_the_wop_height',$model->getMeasurementc() ,
		array('prompt' => 'Select a Measurement Type',)); ?>
		<?php echo $form->error($model,'units_of_measurement_of_the_wop_height'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'occupancy_classification'); ?>
		<?php echo $form->dropDownlist($model, 'occupancy_classification',$model->getOccupancy_classification() ,
		array('prompt' => 'Select a Occupancy Classification',)); ?>
		<?php echo $form->error($model,'occupancy_classification'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'health_type'); ?>
		<?php echo $form->dropDownlist($model, 'health_type',$model->getHealth_type() ,
		array('prompt' => 'Select a Health Type ',)); ?>
		<?php echo $form->error($model,'health_type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'any_renovation'); ?>
		<?php echo $form->textField($model,'any_renovation'); ?>
		<?php echo $form->error($model,'any_renovation'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'industrial_type'); ?>
		<?php echo $form->dropDownlist($model, 'industrial_type',$model->getIndustrial_type() ,
		array('prompt' => 'Select a Industrial Type',)); ?>
		<?php echo $form->error($model,'industrial_type'); ?>
	</div>

<div class="row">
		<?php echo $form->labelEx($model,'class'); ?>
		<?php echo $form->dropDownlist($model, 'class',$model->getClass() ,
		array('prompt' => 'Select a Class ',)); ?>
		<?php echo $form->error($model,'class'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'windowless'); ?>
		<?php echo $form->textField($model,'windowless'); ?>
		<?php echo $form->error($model,'windowless'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'underground'); ?>
		<?php echo $form->textField($model,'underground'); ?>
		<?php echo $form->error($model,'underground'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'miscellaneous_type'); ?>
		<?php echo $form->checkBoxList($model, 'miscellaneous_type', array('Tower'=>'Tower','Pier and Surrounded Structure'=>'Pier and Surrounded Structure','Vehicle and Vessel'=>'Vehicle and Vessel','Underground Structure & Windowless Building'=>'Underground Structure & Windowless Building')); ?> 
		<?php echo $form->error($model,'miscellaneous_type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fire_alarm_provided'); ?>
		<?php echo $form->textField($model,'fire_alarm_provided'); ?>
		<?php echo $form->error($model,'fire_alarm_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'smoke_or_heat_detector_provided'); ?>
		<?php echo $form->textField($model,'smoke_or_heat_detector_provided'); ?>
		<?php echo $form->error($model,'smoke_or_heat_detector_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ac_or_dc_emergency_light_provided'); ?>
		<?php echo $form->textField($model,'ac_or_dc_emergency_light_provided'); ?>
		<?php echo $form->error($model,'ac_or_dc_emergency_light_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'first_aid_fire_protection'); ?>
		<?php echo $form->textField($model,'first_aid_fire_protection'); ?>
		<?php echo $form->error($model,'first_aid_fire_protection'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'lightning_protection_protected'); ?>
		<?php echo $form->textField($model,'lightning_protection_protected'); ?>
		<?php echo $form->error($model,'lightning_protection_protected'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'grounding_system_provided'); ?>
		<?php echo $form->textField($model,'grounding_system_provided'); ?>
		<?php echo $form->error($model,'grounding_system_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'type_of_exit_required'); ?>
		<?php echo $form->textArea($model,'type_of_exit_required',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'type_of_exit_required'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'door'); ?>
		<?php echo $form->textArea($model,'door',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'door'); ?>
	</div>

		<div class="row">
		<?php echo $form->labelEx($model,'residential_type'); ?>
		<?php echo $form->checkBoxList($model, 'residential_type', array('Hotel'=>'Hotel','Apartment'=>'Apartment')); ?> 
		<?php echo $form->error($model,'residential_type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'storage_type'); ?>
		<?php echo $form->checkBoxList($model, 'storage_type', array('Warehouse'=>'Warehouse','Yard'=>'Yard','Garage'=>'Garage','Hangars'=>'Hangars','Others'=>'Others')); ?> 
		<?php echo $form->error($model,'storage_type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'content'); ?>
		<?php echo $form->textArea($model,'content',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'content'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'height_of_stack'); ?>
		<?php echo $form->textArea($model,'height_of_stack',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'height_of_stack'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'storage_tank_or_container_installation'); ?>
		<?php echo $form->dropDownlist($model, 'storage_tank_or_container_installation',$model->getStorage_tank_or_container_installation() ,
		array('prompt' => 'Select a Storage Tank or Container Installation',)); ?>
		<?php echo $form->error($model,'storage_tank_or_container_installation'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'no_of_tank'); ?>
		<?php echo $form->textField($model,'no_of_tank'); ?>
		<?php echo $form->error($model,'no_of_tank'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'distance_from_adjoining_building'); ?>
		<?php echo $form->textField($model,'distance_from_adjoining_building'); ?>
		<?php echo $form->error($model,'distance_from_adjoining_building'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'property_line'); ?>
		<?php echo $form->textField($model,'property_line'); ?>
		<?php echo $form->error($model,'property_line'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'between_tanl'); ?>
		<?php echo $form->textField($model,'between_tanl'); ?>
		<?php echo $form->error($model,'between_tanl'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dike_or_catch_basin_provided'); ?>
		<?php echo $form->textField($model,'dike_or_catch_basin_provided'); ?>
		<?php echo $form->error($model,'dike_or_catch_basin_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'inspection_id'); ?>
		<?php echo $form->textField($model,'inspection_id'); ?>
		<?php echo $form->error($model,'inspection_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->